package com.knife.common.tree.dto;

import lombok.Data;

import java.util.List;

/**
 * 饿了么树
 *
 * @author： 76875
 * @date： 2022/6/6 星期一 17:35
 * @description：
 * @modifiedBy：
 * @version: 1.0
 */
@Data
public class ElementUiTree implements KnifeTree {

    public ElementUiTree(Integer id, String label) {
        this.id = id;
        this.label = label;
    }

    public ElementUiTree(Integer id, String label, boolean disabled) {
        this.id = id;
        this.label = label;
        this.disabled = disabled;
    }

    public ElementUiTree(Integer id, String label, String code) {
        this.id = id;
        this.label = label;
        this.code = code;
    }

    public ElementUiTree(Integer id, String label, String code, boolean disabled) {
        this.id = id;
        this.label = label;
        this.code = code;
        this.disabled = disabled;
    }

    /**
     * id : 12
     * label : 人情礼物
     */

    private Integer id;
    private String label;
    private String code;
    private boolean disabled;
    List<? extends ElementUiTree> children;

}
